import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: '/',
            component: () => import('@/views/login.vue')
        },
        {
            path: '/login',
            name: '登录',
            component: () => import('@/views/login.vue')
        },
        {
            path: '/main',
            name: '购买',
            component: () => import('@/views/main.vue')
        },
        {
            path: '/order',
            name: '订单',
            component: () => import('@/views/order.vue')
        },
        {
            path: '/my',
            name: '我的订单',
            component: () => import('@/views/my.vue')
        },
        {
            path: '/myDetail',
            name: '我的订单详情',
            component: () => import('@/views/myDetail.vue')
        },
    ]
})

export default router